<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<%@ taglib prefix="s" uri="/struts-tags" %>
</head>
<body>
OGNL

<s:form action = "ognlTest" namespace="/private">

<%--  
<s:textfield name = "num" label="Number - Integer Single"></s:textfield>
<s:textfield name = "numArray" label="Number - Integer Array"></s:textfield>
<s:textfield name = "numArray" label="Number - Integer Array"></s:textfield>
<s:textfield name = "numArray" label="Number - Integer Array"></s:textfield>



<s:textfield name = "name" label="String - Single"></s:textfield>
<s:textfield name = "names" label="String - Array"></s:textfield>
<s:textfield name = "names" label="String - Array"></s:textfield>
<s:textfield name = "names" label="String - Array"></s:textfield>


<s:property value="numArray[1]"/>
<s:property value="names[1]"/>

 --%>


<%-- 
<s:textfield name = "user.username" label="User Object"></s:textfield>
<s:textfield name = "users[0].username" label="User Object Array"></s:textfield>
<s:textfield name = "users[1].username" label="User Object Array"></s:textfield>
<s:textfield name = "users[2].username" label="User Object Array"></s:textfield>

<s:property value=""/>

 --%>


<%-- 
 
<s:textfield name="nameList" label="Name list without generics"></s:textfield>
<s:textfield name="nameList" label="Name list without generics"></s:textfield>
<s:textfield name="nameList" label="Name list without generics"></s:textfield>
<s:textfield name="nameListWithGenerics" label="Name list with generics"></s:textfield>
<s:textfield name="nameListWithGenerics" label="Name list with generics"></s:textfield>
<s:textfield name="nameListWithGenerics" label="Name list with generics"></s:textfield>

 --%>


<s:textfield name="usersList[0].username" label="List<User>"></s:textfield>
<s:textfield name="usersList[1].username" label="List<User>"></s:textfield>
<s:textfield name="usersList[2].username" label="List<User>"></s:textfield>







<s:submit value="Submit"></s:submit>
</s:form>


</body>
</html>